package com.ericsson.enap.modules.topology.mapper;

import com.ericsson.enap.modules.topology.entity.EpcCabLinkNode;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface EpcCabLinkNodeMapper {
    List<EpcCabLinkNode> selectLinkNodeList();
    int insertLinkNode(EpcCabLinkNode node);
    int deleteLinkNode(EpcCabLinkNode node);

    @MapKey("fullName")
    Map<String, EpcCabLinkNode> queryLinkNodeMap(@Param("rootId") String rootId);
}
